SGSetDataOutput
TheSGSetDataOutput
function allows you to specify the movie file for a record operation and to specify other options that govern the operation. The sequence grabber component stores the data that is obtained during the record operation as a QuickTime movie in this file. This function also allows you to control some aspects of the record operation, which are related to output, by specifying control flags. These flags are discussed in the function description that follows.
pascal ComponentResult SGSetDataOutput (SeqGrabComponent s, FSSpec *movieFile, long whereFlags);
s
- Specifies the component instance that identifies your connection to the sequence grabber component. You obtain this value from the Component Manager's
OpenDefaultComponent
orOpenComponent
function.movieFile
- Contains a pointer to the movie file for this record operation.
whereFlags
- Contains flags that control the record operation. The following flags are defined by the
SeqGrabDataOutputEnum
data type; you must set either theseqGrabToDisk
flag or theseqGrabToMemory
flag to 1 (set unused flags to 0).seqGrabToDisk
- Instructs the sequence grabber component to write the recorded data to a QuickTime movie in the movie file specified by the
movieFile
parameter. If you set this flag to 1, the sequence grabber writes the data to the file as the data is recorded. Set this flag to 0 if you set theseqGrabToMemory
flag to 1 (only one of these two flags may be set to 1).seqGrabToMemory
- Instructs the sequence grabber component to store the recorded data in memory until the recording process is complete. The sequence grabber then writes the recorded data to the movie file specified by the
movieFile
parameter. This technique provides better performance than recording directly to the movie file, but it limits the amount of data you can record. Set this flag to 1 to record to memory. Set this flag to 0 if you set theseqGrabToDisk
flag to 1 (only one of these two flags may be set to 1).seqGrabDontUseTempMemory
- Prevents the sequence grabber component from using temporary memory during the record operation. By default, the sequence grabber component and its channel components use as much temporary memory as necessary to perform the record operation. Set this flag to 1 to prevent the sequence grabber component and its channel components from using temporary memory.
seqGrabAppendToFile
- Directs the sequence grabber component to add the recorded data to the data fork of the movie file specified by the
movieFile
parameter. By default, the sequence grabber component deletes the movie file and creates a new file containing one movie and the corresponding movie resource. Set this flag to 1 to cause the sequence grabber component to append the recorded data to the data fork of the movie file and create a new movie resource in that file.seqGrabDontAddMovieResource
- Prevents the sequence grabber component from adding the new movie resource to the movie file specified by the
movieFile
parameter. By default, the sequence grabber component creates a new movie resource and adds that resource to the movie file. Set this flag to 1 to prevent the sequence grabber component from adding the movie resource to the movie file. You are then responsible for adding the resource to a file, if you so desire.seqGrabDontMakeMovie
- Prevents the sequence grabber component from creating a movie. By default, the sequence grabber component creates a new movie resource and adds the captured data to that movie. If you set this flag to 1, the sequence grabber still calls your data function, but does not write any data to the movie file.
DESCRIPTION
If you are performing a preview operation, you do not need to use theSGSetDataOutput
function.RESULT CODES
File Manager errors
notEnoughMemoryToGrab -9403 Insufficient memory for record operation notEnoughDiskSpaceToGrab -9404 Insufficient disk space for record operation
Memory Manager errors
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help